package com.atguigu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atguigu.crud.bean.Department;
import com.atguigu.crud.bean.DepartmentExample;
import com.atguigu.crud.dao.DepartmentMapper;

@Service
public class DepartmentService implements DepartmentMapper {
	
	@Autowired
	private DepartmentMapper departmentMapper;
	
	@Autowired
	

	public List<Department> getDepts() {
		// TODO Auto-generated method stub
		List<Department> list = departmentMapper.selectByExample(null);
		return list;
	}

	public long countByExample(DepartmentExample example) {
		
		return 0;
	}

	
	public int deleteByExample(DepartmentExample example) {
		// TODO Auto-generated method stub
		return 0;
	}


	public int deleteByPrimaryKey(Integer deptId) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public int insert(Department record) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public int insertSelective(Department record) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public List<Department> selectByExample(DepartmentExample example) {
		// TODO Auto-generated method stub
		return null;
	}


	public Department selectByPrimaryKey(Integer deptId) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public int updateByExampleSelective(Department record, DepartmentExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public int updateByExample(Department record, DepartmentExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public int updateByPrimaryKeySelective(Department record) {
		// TODO Auto-generated method stub
		return 0;
	}

	
	public int updateByPrimaryKey(Department record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
